home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
comm
/
mpmod160.zip
/
TELEMATE.ZIP
/
ZMODDN1.SCR
< prev
next >
Wrap
Text File
|
1993-01-01
|
2KB
|
47 lines
;
; Telemate Script for the downloading of files - resuming IS allowed.
;
; The "-w" switch tells MPModem to "warble" after it has finished (to wake
; up those sleepy operators :->) but is only available to REGISTERED users
; (so register).
;
;
;Procedure to convert a string of space characters to underline characters
;
PROCEDURE Convert STRING line
INTEGER rr
WHILE rr <> 0
STRPOS line," ",rr
STRSET line,"_",rr,1
rr = rr + 1
ENDWHILE
ENDPROC
STRING param,baud2,port2,dummy,downdir,boardname
INTEGER stat, baud1, port1
QUERY Baud,baud1
QUERY Port,port1
QUERY Board,boardname
QUERY DirDownload,downdir
param = "mpmodem -rz -w -y -c -f -l -b" ; Set up the parameter list
ITOA baud1,baud2 ; Convert integer baud rate to a string
ITOA port1,port2 ; Convert integer port rate to a string
CONCAT param, baud2 ; Add the baud rate to the parameter list
CONCAT param, " -p" ; Set up the switch for the port number
CONCAT param, port2 ; Add the port rate to the parameter list
CONCAT param, " -v" ; Set up the switch for the board name
IF NOT CONNECTED ; Are we connected to a BBS (or whatever)
boardname = "Offline/Direct_Connect" ; No, so put a dummy name in
ELSE
Convert boardname ; Yes, so grab and convert the name
ENDIF
CONCAT param,boardname ; Add the boardname to the parameter list
CONCAT param," -t0 " ; Put a dummy time in.
CONCAT param, downdir ; Add the download dir.
DOS param ; Run the program.